# -*- coding: utf-8 -*- 
'''
Created on 2 sept. 2012

@author: Olivier
'''
from Window.GameDrawPanel import GameDrawPanel

class GameDrawPanelManager(GameDrawPanel):
    '''
    classdocs
    '''


    def __init__(self, parent):
        '''
        Constructor
        '''
        GameDrawPanel.__init__(self, parent)
        self.SetFocus()
        
    def SetController(self, inController):
        self.__mController = inController
        self._mDrawPanel.SetController(inController)
        
    def AddClickPlayer(self, inClickPlayer):
        self._mDrawPanel.AddClickPlayer(inClickPlayer)
        
    def AddMovePlayer(self, inMovePlayer):
        self._mDrawPanel.AddMovePlayer(inMovePlayer)
        
    def UpdateScore(self):
        theScore = self.__mController.GetStringScore()
        self._mScoreStaticText.SetLabel(theScore)
        